﻿<Window x:Class="UserInterface.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Azure Database Uploader Utility" Height="700" Width="1024" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" Icon="Images/Azure.ico">
    <Window.Resources>
           
    	<Storyboard x:Key="StartBusy" RepeatBehavior="Forever">
    		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Layer_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
    			<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="45"/>
                
    			<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="45"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="90"/>
                
    			<SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="90"/>
                <SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="135"/>
                
    			<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="135"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="180"/>
                
    			<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="180"/>
    			<SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="225"/>
                
                <SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="225"/>
    			<SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="270"/>
                
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="270"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="315"/>
                
                <SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="315"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="0"/>
                
    		</DoubleAnimationUsingKeyFrames>

    		<Int32AnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border2_Copy" Storyboard.TargetProperty="(Panel.ZIndex)">
    			<SplineInt32KeyFrame KeyTime="00:00:00" Value="1"/>
    			<SplineInt32KeyFrame KeyTime="00:00:02.4000000" Value="1"/>
    		</Int32AnimationUsingKeyFrames>
    	</Storyboard>
        
    	<Storyboard x:Key="StopBusy">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Layer_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            
            <Int32AnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border2_Copy" Storyboard.TargetProperty="(Panel.ZIndex)">
    			<SplineInt32KeyFrame KeyTime="00:00:00" Value="0"/>
    		</Int32AnimationUsingKeyFrames>
    	</Storyboard>
        
    	<Style x:Key="BarButton" TargetType="{x:Type Button}">
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type Button}">
    					<ControlTemplate.Resources>
    						<Storyboard x:Key="OnMouseEnter1">
    							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
    								<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1"/>
    								<SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
    							</DoubleAnimationUsingKeyFrames>
    						</Storyboard>
    						<Storyboard x:Key="OnMouseLeave1">
    							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Rectangle" Storyboard.TargetProperty="(UIElement.Opacity)">
    								<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.1"/>
    							</DoubleAnimationUsingKeyFrames>
    						</Storyboard>
    					</ControlTemplate.Resources>
    					<Grid x:Name="ButtonGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    						<Rectangle x:Name="Rectangle" StrokeThickness="0.2" Visibility="Visible" Stroke="#FF000000" Opacity="0.1">
    							<Rectangle.Fill>
    								<LinearGradientBrush StartPoint="0.478828,-0.00246299" EndPoint="0.478828,0.968965">
    									<GradientStop Color="#7FF8FDFE" Offset="0"/>
    									<GradientStop Color="#7F7CE7FE" Offset="0.460177"/>
    									<GradientStop Color="#7F00D1FF" Offset="1"/>
    								</LinearGradientBrush>
    							</Rectangle.Fill>
    						</Rectangle>
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True"/>
    					</Grid>
                        <ControlTemplate.Triggers>
                            
    						<EventTrigger RoutedEvent="Mouse.MouseLeave">
    							<BeginStoryboard Storyboard="{StaticResource OnMouseLeave1}" x:Name="OnMouseLeave1_BeginStoryboard"/>
    						</EventTrigger>
    						<EventTrigger RoutedEvent="Mouse.MouseEnter">
    							<BeginStoryboard Storyboard="{StaticResource OnMouseEnter1}"/>
    						</EventTrigger>
    					</ControlTemplate.Triggers>
                        
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
            
    	</Style>
    	
    </Window.Resources>
    <Window.Triggers>
    	<EventTrigger RoutedEvent="ButtonBase.Click" SourceName="BConnect">
    		<BeginStoryboard Storyboard="{StaticResource StartBusy}"/>
    	</EventTrigger>
        
    </Window.Triggers>
    <Grid Height="Auto" Width="Auto">
		<Grid.RowDefinitions>
			<RowDefinition Height="35"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
        
		<Grid x:Name="GridBar" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*"/>
				<ColumnDefinition Width="60"/>
				<ColumnDefinition Width="60"/>
			</Grid.ColumnDefinitions>
			<Rectangle x:Name="Rectangle" StrokeThickness="0.2" StrokeLineJoin="Round" Stroke="#FF000000" Grid.ColumnSpan="3" >
				<Rectangle.Fill>
					<LinearGradientBrush StartPoint="0.478828,-0.00246277" EndPoint="0.478828,0.968966">
						<GradientStop Color="#FFF8FDFE" Offset="0"/>
						<GradientStop Color="#FFBCEAF4" Offset="0.237443"/>
						<GradientStop Color="#FF81D7EA" Offset="0.515982"/>
						<GradientStop Color="#FF62C7DE" Offset="0.516363"/>
						<GradientStop Color="#FF44B8D2" Offset="0.657534"/>
						<GradientStop Color="#FF0B7E98" Offset="1"/>
					</LinearGradientBrush>
				</Rectangle.Fill>
			</Rectangle>
			<TextBlock d:LayoutOverrides="Width" HorizontalAlignment="Center"  VerticalAlignment="Center" Grid.Column="1" Text="About us" d:IsHidden="True" ></TextBlock>
			<TextBlock Margin="0,0,0,0" d:LayoutOverrides="Width" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2" Text="Help" d:IsHidden="True" ></TextBlock>
			<Button Grid.Column="2" Content="Help" Style="{DynamicResource BarButton}" HorizontalAlignment="Stretch" x:Name="BHelp" Click="BHelp_Click" />
			<Button Content="About us" Style="{DynamicResource BarButton}" Grid.Column="1" x:Name="BAboutUs" Click="BAboutUs_Click"/>
		</Grid>

		<Border BorderThickness="1,1,5,5" BorderBrush="{x:Null}" CornerRadius="5,5,5,5" x:Name="border2_Copy" RenderTransformOrigin="0.5,0.5" Opacity="0.5" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF" Margin="0" Panel.ZIndex="0" Grid.Row="1" Grid.RowSpan="1">
			<Border.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="0"/>
					<TranslateTransform X="0" Y="0"/>
				</TransformGroup>
			</Border.RenderTransform>
			<Canvas x:Name="Layer_1" Width="157" Height="157" Canvas.Left="0" Canvas.Top="0" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Opacity="0.995">
				<Canvas.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="1" ScaleY="1"/>
						<SkewTransform AngleX="0" AngleY="0"/>
						<RotateTransform Angle="0"/>
						<TranslateTransform X="0" Y="0"/>
					</TransformGroup>
				</Canvas.RenderTransform>
				<Canvas Width="156.165" Height="156.167">
					<Path x:Name="Path" Width="16.6243" Height="62.2988" Canvas.Left="69.6029" Canvas.Top="1.52588e-005" Stretch="Fill" Fill="#FF60C3FE" Data="F1 M 86.2271,31.4012C 86.2271,18.4445 82.8743,6.98193 77.7339,1.52588e-005C 72.7987,7.02213 69.6029,18.2478 69.6029,30.8977C 69.6029,43.8544 72.9556,55.3169 78.0961,62.2988C 83.0313,55.2767 86.2271,44.0511 86.2271,31.4012 Z "/>
					<Path x:Name="Path_0" Width="43.7936" Height="44.3102" Canvas.Left="89.253" Canvas.Top="22.6206" Stretch="Fill" Fill="#FF4ABBFF" Data="F1 M 116.85,50.831C 126.011,41.6687 131.745,31.1925 133.047,22.6206C 124.592,24.0967 114.394,29.7751 105.45,38.7204C 96.2887,47.8826 90.5548,58.3589 89.253,66.9308C 97.7081,65.4547 107.905,59.7763 116.85,50.831 Z "/>
					<Path x:Name="Path_1" Width="62.298" Height="16.6255" Canvas.Left="93.8675" Canvas.Top="69.5108" Stretch="Fill" Fill="#FF33B2FE" Data="F1 M 124.781,86.1362C 137.738,86.1108 149.194,82.7356 156.165,77.5816C 149.134,72.6601 137.902,69.4862 125.252,69.511C 112.295,69.5364 100.839,72.9116 93.8675,78.0657C 100.899,82.9871 112.131,86.161 124.781,86.1362 Z "/>
					<Path x:Name="Path_2" Width="44.3958" Height="43.7068" Canvas.Left="89.2574" Canvas.Top="89.2317" Stretch="Fill" Fill="#FF00A0FF" Data="F1 M 105.411,116.797C 114.591,125.94 125.079,131.654 133.653,132.938C 132.161,124.486 126.462,114.3 117.499,105.373C 108.319,96.23 97.8317,90.5166 89.2574,89.2317C 90.75,97.6838 96.4484,107.87 105.411,116.797 Z "/>
					<Path x:Name="Path_3" Width="16.6234" Height="62.2996" Canvas.Left="69.8085" Canvas.Top="93.8679" Stretch="Fill" Fill="#FFD5EFFF" Data="F1 M 69.8088,124.743C 69.7727,137.699 73.0935,149.171 78.2145,156.167C 83.1692,149.159 86.3963,137.942 86.4316,125.293C 86.4676,112.336 83.1468,100.864 78.0258,93.8679C 73.0711,100.876 69.844,112.093 69.8088,124.743 Z "/>
					<Path x:Name="Path_4" Width="43.9168" Height="44.1881" Canvas.Left="22.9649" Canvas.Top="89.2049" Stretch="Fill" Fill="#FFB8E4FF" Data="F1 M 39.2404,105.228C 30.0536,114.365 24.2905,124.825 22.9649,133.393C 31.424,131.94 41.6371,126.29 50.6063,117.37C 59.7931,108.233 65.5562,97.7731 66.8818,89.2049C 58.4227,90.6575 48.2096,96.3075 39.2404,105.228 Z "/>
					<Path x:Name="Path_5" Width="62.2993" Height="16.626" Canvas.Left="7.7486e-007" Canvas.Top="69.4623" Stretch="Fill" Fill="#FF98D8FF" Data="F1 M 31.4857,69.4662C 18.5296,69.3348 7.0337,72.5711 7.7486e-007,77.6404C 6.97171,82.6466 18.1644,85.9562 30.8136,86.0845C 43.7697,86.2159 55.2656,82.9795 62.2993,77.9102C 55.3276,72.904 44.1349,69.5945 31.4857,69.4662 Z "/>
					<Path x:Name="Path_6" Width="43.8637" Height="44.2408" Canvas.Left="23.1804" Canvas.Top="22.5599" Stretch="Fill" Fill="#FF7ACDFF" Data="F1 M 51.2251,39.0422C 42.1562,29.7884 31.7387,23.9485 23.1804,22.5599C 24.5707,31.0295 30.1454,41.2838 38.9995,50.3185C 48.0684,59.5723 58.486,65.4122 67.0442,66.8007C 65.6539,58.3312 60.0792,48.0768 51.2251,39.0422 Z "/>
				</Canvas>
			</Canvas>
		</Border>
		<TabControl x:Name="MyTabControl" HorizontalAlignment="Stretch" Margin="0,0,0,0" Width="Auto" IsSynchronizedWithCurrentItem="True" Grid.Row="1" Grid.RowSpan="1" >
			<TabItem Header="Server Selection" x:Name="TIStep1" IsSelected="False" IsEnabled="True" Visibility="Visible">
				<Grid Visibility="Visible">
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" x:Name="border1" RenderTransformOrigin="0.5,0.5" Opacity="1" Margin="0,0,0,0" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF" Visibility="Visible">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Height="Auto" Width="Auto" ShowGridLines="False" Visibility="Visible">
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="50"/>
								<RowDefinition Height="*"/>
								<RowDefinition Height="50" />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="100" />
								<ColumnDefinition Width="*"/>
								<ColumnDefinition Width="120" />
							</Grid.ColumnDefinitions>
							<TextBlock  Text="Step 1" Margin="10,10,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Visible" />
							<Button x:Name="Bnext1" Click="Bnext1_Click" Content="Next" RenderTransformOrigin="0.5,0.5" Width="100" Height="25"  Margin="10,12.5,10,12.5" Grid.Column="2" Grid.Row="3" Visibility="Visible"/>
							<TextBlock Text="Server Type" HorizontalAlignment="Left" Width="65" Grid.Column="1" Grid.Row="2" Height="25.113" VerticalAlignment="Top" Visibility="Visible" />
							<ComboBox x:Name="CBServerType" Margin="84.909,0.113,0,0" Height="25" MaxDropDownHeight="341" SelectionChanged="CBServerType_SelectionChanged" Width="150" HorizontalAlignment="Left" d:LayoutOverrides="Height" Grid.Column="1" Grid.Row="2" VerticalAlignment="Top" Visibility="Visible">
								<ComboBoxItem Content="MS SQL Server" IsSelected="True" x:Name="MSSQLServer" />
                                <ComboBoxItem Content="MS Access File" x:Name="MSAccessFile"/>
                                <ComboBoxItem Content="MySQL Server" x:Name="MySQLServer"/>
							</ComboBox>
                        </Grid>
					</Border>
                </Grid>
			</TabItem>
			<TabItem Header="Connection" x:Name="TIStep2" IsEnabled="False" IsSelected="False">
				<Grid>
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" x:Name="border2" RenderTransformOrigin="0.5,0.5" Opacity="1" Margin="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Height="Auto" Width="Auto"  x:Name="GridBorder2">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="100" />
								<ColumnDefinition Width="119.539" />
								<ColumnDefinition Width="351.211"/>
                                <ColumnDefinition Width="295.25*" />
								<ColumnDefinition Width="120" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="50" />
								<RowDefinition Height="195.908" />
								<RowDefinition Height="36.066" />
								<RowDefinition Height="*"/>
								<RowDefinition Height="50"  />
							</Grid.RowDefinitions>
							<TextBlock  Text="Step 2" Margin="10,10,0,0" TextWrapping="Wrap" Height="15.96" VerticalAlignment="Top" HorizontalAlignment="Left" Width="33.527" />
							<Button x:Name="Bnext2" Click="Bnext2_Click" IsEnabled="False" Content="Next" RenderTransformOrigin="0.5,0.5" Margin="10,12.5,10,12.5" Width="100" Height="25" Grid.Column="4" Grid.Row="5" TabIndex="8" />
                            <GroupBox Header="Authentication" x:Name="groupBox4" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2">
								<Grid x:Name="grid4">
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="172.555" />
										<ColumnDefinition Width="89.047" />
										<ColumnDefinition Width="104"/>
                                        <ColumnDefinition Width="199.698*" />
                                    </Grid.ColumnDefinitions>
									<Grid.RowDefinitions>
										<RowDefinition Height="35.905" />
										<RowDefinition Height="35.941" />
										<RowDefinition Height="34.793" />
										<RowDefinition Height="33.135" />
										<RowDefinition Height="33.412" />
										<RowDefinition Height="*"/>
									</Grid.RowDefinitions>
									<RadioButton Content="Windows Integrated Authentication" Grid.ColumnSpan="2" Grid.Row="0" IsChecked="True" GroupName="RBAuthMode" Margin="10,0,0,0" x:Name="RBWinAuthentication" Checked="RBWinAuthentication_Checked" d:LayoutOverrides="Height" VerticalAlignment="Center" HorizontalAlignment="Left" TabIndex="2" />
									<RadioButton Content="MS SQL Server Authentication" Grid.Row="1" GroupName="RBAuthMode" Margin="10,9.991,0,9.99" x:Name="RBSQLAuthentication" Checked="RBSQLAuthentication_Checked" d:LayoutOverrides="Height" HorizontalAlignment="Left" TabIndex="3" Width="Auto" Grid.ColumnSpan="2" />
									<TextBlock Text="User Name"  Grid.Row="2" Grid.Column="1" Margin="3,0,0,0" VerticalAlignment="Center" />
									<TextBox Grid.Column="2" Grid.Row="2" x:Name="TBUserName" Margin="0,4.896,7.148,4.897" IsEnabled="False" d:LayoutOverrides="HorizontalAlignment" TabIndex="4" Grid.ColumnSpan="2" />
									<TextBlock Grid.Column="1" Grid.Row="3" Text="Password" Margin="3,0,0,0" VerticalAlignment="Center" />
									<PasswordBox Grid.Row="3"  Grid.Column="2" Margin="0,4.067,7.148,4.068" x:Name="TBPassword" IsEnabled="False" d:LayoutOverrides="HorizontalAlignment" TabIndex="5" Grid.ColumnSpan="2" />
									<Button Margin="0,0,4,0"  x:Name="BConnect" Click="BConnect_Click" Content="Connect" Grid.Row="4" Grid.Column="2" VerticalAlignment="Center" Height="25" TabIndex="6" ToolTip="Click here to connect with specified server." />
                                    <TextBlock Grid.Column="3" Grid.Row="4" Name="TBlockConnectionStatus" Text="" VerticalAlignment="Center" />
                                </Grid>
							</GroupBox>
							<TextBlock Margin="0,0,10,0" x:Name="TBlockDataBase" Grid.Column="1" Grid.Row="3" Text="Databases" TextWrapping="Wrap" RenderTransformOrigin="0.551,0.702" HorizontalAlignment="Right" Width="Auto" VerticalAlignment="Center" Height="15"/>
							<ComboBox Width="200" SelectionChanged="CBDataBase_SelectionChanged" IsSynchronizedWithCurrentItem="True" Grid.Column="2" Grid.Row="3" x:Name="CBDataBase" Margin="2.5,4,148.587,2.066" TabIndex="7" />
							<TextBlock Text="Server Name" x:Name="TBlockServerName" Margin="0,0,10,0" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Width="Auto" Height="15" />
							<TextBox x:Name="TBServerName" Text="" Width="190" Height="25" Grid.Column="2" Grid.Row="1" d:LayoutOverrides="Height" TextChanged="TBServerName_TextChanged" Margin="2.5,5.206,158.587,2.167" AcceptsTab="False" TabIndex="1" />
							<Button HorizontalAlignment="Right" Visibility="Collapsed" Margin="0,14.04,77.75,10.98" Width="72" Content="Browse" x:Name="BBrowse2" Grid.Column="2" Grid.Row="1" Click="BBrowse2_Click" />
						</Grid>
					</Border>
				</Grid>
			</TabItem>
			<TabItem Header="Data Source" x:Name="TIStep3" IsEnabled="False"  >
				<Grid>
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5" x:Name="border3" Opacity="1" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Width="Auto" Height="Auto" ShowGridLines="False">
							<Grid.ColumnDefinitions >
								<ColumnDefinition Width="100" />
                                <ColumnDefinition Width="298.318"/>
                                <ColumnDefinition Width="467.682*" />
								<ColumnDefinition Width="120"/>
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="108.738" />
								<RowDefinition Height="*" />
								<RowDefinition Height="50" />
							</Grid.RowDefinitions>
							<TextBlock  Text="Step 3" Margin="10,10,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" />
							<GroupBox Header="Data Retrieve Mode" x:Name="groupBox5" d:LayoutOverrides="VerticalAlignment" Grid.Column="1" Grid.Row="1">
								<Grid Width="Auto" Height="Auto" ShowGridLines="False">
									<Grid.RowDefinitions>
										<RowDefinition Height="42.889" />
										<RowDefinition Height="42.889" />
									</Grid.RowDefinitions>
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="99.773" />
										<ColumnDefinition Width="99.773"/>
										<ColumnDefinition Width="99.772*"/>
									</Grid.ColumnDefinitions>
									<RadioButton x:Name="RBTable" IsChecked="True" Checked="RBTable_Checked" Content="Table" Margin="5,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" GroupName="TableViewQuery" TabIndex="1"/>
									<RadioButton x:Name="RBQuery" Content="Query" Checked="RBQuery_Checked" Margin="5,0,-13,0" Grid.Column="2" VerticalAlignment="Center" IsChecked="False" GroupName="TableViewQuery" TabIndex="3" Height="15.96" />
									<ComboBox x:Name="CBTableView" SelectionChanged="CBTableView_SelectionChanged" Width="180" Height="30" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" />
									<RadioButton x:Name="RBView" IsChecked="False" Checked="RBView_Checked" Content="View" Margin="5,0,0,0" HorizontalAlignment="Stretch" Width="Auto" Grid.Column="1" d:LayoutOverrides="Height" VerticalAlignment="Center" GroupName="TableViewQuery" TabIndex="2"/>
                                    <Button Margin="0" x:Name="BBrowse3" Content="Browse..." IsEnabled="False" Click="BBrowse3_Click" Grid.Row="1" ToolTip="Browse query from text file." Grid.Column="2" Height="25" Width="80" />
                                </Grid>
							</GroupBox>
            		
							<Border BorderBrush="#FF44B8D2" BorderThickness="1,2,4,3" CornerRadius="5,5,5,5" Grid.Row="2" Grid.ColumnSpan="4" Margin="10,10,10,10">
								<Border.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="0"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0"/>
									</TransformGroup>
								</Border.RenderTransform>
								<Grid Width="Auto" Height="Auto">
									<TextBox HorizontalAlignment="Stretch" Margin="2,2,2,2" IsEnabled="False" Width="Auto" Text="Select " TextWrapping="Wrap" Panel.ZIndex="0" x:Name="TBQuery" BorderBrush="{x:Null}" Cursor="IBeam"/>
								</Grid>
							</Border>
                            <Button Margin="10,12.5,10,12.5" x:Name="Bnext3" Click="Bnext3_Click" Content="Next" Grid.Row="3" Grid.Column="3" Width="100" Height="25" />
                        </Grid>
					</Border>
				</Grid>
			</TabItem>
			<TabItem Header="Sample Data" x:Name="TIStep4" IsEnabled="False">
				<Grid>
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" Margin="0,0,0,0" x:Name="border4" RenderTransformOrigin="0.5,0.5" Opacity="1" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Width="Auto" ShowGridLines="False" >
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="100" />
                                <ColumnDefinition Width="766*" />
								<ColumnDefinition Width="120" />
							</Grid.ColumnDefinitions>
					
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="50" />
								<RowDefinition Height="*" />
								<RowDefinition Height="50" />
							</Grid.RowDefinitions>
								
							<TextBlock Text="Step 4" Margin="10,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="15.96" HorizontalAlignment="Left" />
							<Button Margin="10,12.5,10,12.5" x:Name="Bnext4" Click="Bnext4_Click" Content="Next" Grid.Row="3" Grid.Column="2" Width="100" Height="25" />
                            <TextBlock Text="Sample Data" TextWrapping="Wrap" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1" Width="Auto" VerticalAlignment="Top" Height="Auto" />
							<Border BorderBrush="#FF44B8D2" BorderThickness="1,2,4,3" CornerRadius="5,5,5,5" Grid.ColumnSpan="3" Grid.Row="2" Margin="10,10,10,10">
								<Border.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1" />
										<SkewTransform AngleX="0" AngleY="0" />
										<RotateTransform Angle="0" />
										<TranslateTransform X="0" Y="0" />
									</TransformGroup>
								</Border.RenderTransform>
								<my:DataGrid AutoGenerateColumns="True" ItemsSource="{Binding}" x:Name="TableDataGrid" IsReadOnly="True" />
							</Border>
							<TextBlock Text="Note: The data shown here is only sample rows of user data. Full data will be fetched in EAV generation step." TextWrapping="Wrap" HorizontalAlignment="Left" Width="Auto" Margin="0,15.96,0,18.08" Grid.Column="1" Grid.Row="1" />
						</Grid>
					</Border>
				</Grid>
			</TabItem>
			<TabItem Header="Mapping" x:Name="TIStep5" IsEnabled="False">
				<Grid>
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5" x:Name="border5" Opacity="1" Background="#FFFFFFFF" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Width="Auto" Height="Auto">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="100" />
                                <ColumnDefinition Width="766*" />
								<ColumnDefinition Width="120" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="50"/>
								<RowDefinition Height="*"/>
								<RowDefinition Height="50" />
							</Grid.RowDefinitions>
							<Border BorderBrush="#FF44B8D2" BorderThickness="1,2,4,3" CornerRadius="5,5,5,5" Grid.ColumnSpan="3" Grid.Row="2" Margin="10,10,10,10">
								<Border.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1" />
										<SkewTransform AngleX="0" AngleY="0" />
										<RotateTransform Angle="0" />
										<TranslateTransform X="0" Y="0" />
									</TransformGroup>
								</Border.RenderTransform>
								<my:DataGrid AutoGenerateColumns="False" Height="Auto" ItemsSource="{Binding}" x:Name="TableHeaderGrid" Width="Auto" Grid.RowSpan="2" Grid.ColumnSpan="2" CanUserAddRows="False">
									<my:DataGrid.Columns>
										<my:DataGridTextColumn Binding="{Binding Path=RelationalColumnName}" IsReadOnly="True" Header="Column Name" />
										<my:DataGridTextColumn Binding="{Binding Path=RelationalColumnType}" IsReadOnly="True" Header="Column Type" />
										<my:DataGridTemplateColumn Header="Azure Column Name">
											<my:DataGridTemplateColumn.CellTemplate>
												<DataTemplate>
													<TextBox Text="{Binding Path=AzureColumn.Name, Mode=TwoWay}" TextChanged="TextBox_TextChanged" />
												</DataTemplate>
											</my:DataGridTemplateColumn.CellTemplate>
										</my:DataGridTemplateColumn>
										<my:DataGridTemplateColumn Header="Azure Data Type">
											<my:DataGridTemplateColumn.CellTemplate>
												<DataTemplate>
													<ComboBox SelectedIndex="7" SelectedItem="{Binding Path=AzureColumn.Type1, Mode=TwoWay}" Loaded="ComboBox_Loaded" SelectionChanged="ComboBox_SelectionChanged" />
												</DataTemplate>
											</my:DataGridTemplateColumn.CellTemplate>
										</my:DataGridTemplateColumn>
										<my:DataGridTemplateColumn Header=" Import Column ?">
											<my:DataGridTemplateColumn.CellTemplate>
												<DataTemplate>
													<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
														<CheckBox IsChecked="{Binding Path=AzureColumn.IsImported, Mode=TwoWay}" Click="CheckBox_Click" />
													</StackPanel>
												</DataTemplate>
											</my:DataGridTemplateColumn.CellTemplate>
										</my:DataGridTemplateColumn>
									</my:DataGrid.Columns>
								</my:DataGrid>
							</Border>
							<TextBlock  Text="Step 5" Margin="10,10,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" Width="Auto" Grid.Column="0" VerticalAlignment="Top" />
							<Button Margin="10,12.5,10,12.5" x:Name="Bnext5" Width="100" Height="25" Click="Bnext5_Click" Content="Next" Grid.Row="3" Grid.Column="2" TabIndex="1" />
                            <TextBlock HorizontalAlignment="Left" Margin="3.5,49.46,0,12.972" Text="Column Mapping" TextWrapping="Wrap" Width="111" Grid.Column="1" Grid.RowSpan="2" />
						</Grid>
					</Border>
				</Grid>
			</TabItem>
			<TabItem Header="Mapped Sample Data" x:Name="TIStep6" IsEnabled="False">
				<Grid>
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" x:Name="border6" RenderTransformOrigin="0.5,0.5" Opacity="1" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Width="Auto" ShowGridLines="False" >
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="100" />
                                <ColumnDefinition Width="766*" />
								<ColumnDefinition Width="120" />
							</Grid.ColumnDefinitions>
					
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="50" />
								<RowDefinition Height="*" />
								<RowDefinition Height="50" />
							</Grid.RowDefinitions>
								
							<TextBlock Text="Step 6" Margin="10,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="Auto" HorizontalAlignment="Left" />
							<Button Margin="10,12.5,10,12.5" x:Name="Bnext6" Click="Bnext6_Click" Content="Next" Grid.Row="3" Grid.Column="2" Width="100" Height="25" />
                            <TextBlock Text="Sample Data" TextWrapping="Wrap" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1" Width="85.27" VerticalAlignment="Top" Height="15.96" />
							<Border BorderBrush="#FF44B8D2" BorderThickness="1,2,4,3" CornerRadius="5,5,5,5" Grid.ColumnSpan="3" Margin="13.128,10,10,10" Grid.Row="2">
								<Border.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1" />
										<SkewTransform AngleX="0" AngleY="0" />
										<RotateTransform Angle="0" />
										<TranslateTransform X="0" Y="0" />
									</TransformGroup>
								</Border.RenderTransform>
								<my:DataGrid AutoGenerateColumns="True" ItemsSource="{Binding}" x:Name="TableDataGrid2" IsReadOnly="True" />
							</Border>
						</Grid>
					</Border>
				</Grid>
			</TabItem>
			<TabItem Header="Azure Configuration" x:Name="TIStep7" IsEnabled="False">
				<Grid>
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" RenderTransformOrigin="0.5,0.5" x:Name="border7" Opacity="1" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Width="Auto" Height="Auto">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="100" />
                                <ColumnDefinition Width="766*" />
								<ColumnDefinition Width="120" />
							</Grid.ColumnDefinitions>
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="50"/>
								<RowDefinition Height="280" />
								<RowDefinition Height="*"/>
								<RowDefinition Height="50" />
							</Grid.RowDefinitions>
							<TextBlock  Text="Step 7" Margin="10,10,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top" />
							<Button Margin="10,12.5,10,12.5" x:Name="Bnext7" Click="Bnext7_click" Content="Next" Grid.Row="4" Grid.Column="2" Width="100" Height="25" TabIndex="11" />
                            <TextBlock Margin="0,0,51.25,0" Text="Now we are in process of converting data into EAV model. Please select Partition Key and Row key for EAV model." TextWrapping="Wrap" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="1" Height="15.726" VerticalAlignment="Top" />
							<Grid ShowGridLines="False" x:Name="EavGridView" Grid.Column="1" Grid.Row="2">	
								<Grid.RowDefinitions>
									<RowDefinition Height="35"/>
									<RowDefinition Height="35"/>
									<RowDefinition Height="35"/>
									<RowDefinition Height="35"/>
									<RowDefinition Height="35"/>
									<RowDefinition Height="35"/>
									<RowDefinition Height="35"/>
									<RowDefinition Height="35"/>
								</Grid.RowDefinitions>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="125" />
									<ColumnDefinition Width="220" />
									<ColumnDefinition Width="97.667" />
									<ColumnDefinition Width="116.666" />
									<ColumnDefinition Width="100.667" />
									<ColumnDefinition Width="141.985" />
								</Grid.ColumnDefinitions>
                                
								<RadioButton x:Name="RBGuid" GroupName="RowKey" Grid.Column="1" HorizontalAlignment="Left" Width="Auto" Grid.Row="4" Height="Auto" IsChecked="True" Checked="RBGuid_Checked" Content="Guid (System.Guid.NewGuid())" d:LayoutOverrides="Height" Margin="0,0,0,0" VerticalAlignment="Center" TabIndex="3"/>
								<RadioButton Margin="0,0,0,0" x:Name="RBTicks" Grid.Row="5" GroupName="RowKey" Grid.Column="1" HorizontalAlignment="Left" Width="Auto" Height="Auto" Checked="RBTicks_Checked" Content="Ticks (System.DateTime.Now.Ticks)" d:LayoutOverrides="Height" VerticalAlignment="Center" TabIndex="4"/>
								<RadioButton Margin="0,0,0,0" x:Name="RBSequential" Checked="RBSequential_Checked" Grid.Row="6" GroupName="RowKey" Grid.Column="1" Width="Auto" Height="Auto" d:LayoutOverrides="Width, Height" Content="Sequential Key" VerticalAlignment="Center" TabIndex="5"/>
								<RadioButton Margin="0,0,0,0" x:Name="RBHeader" Grid.Row="7" GroupName="RowKey" Grid.Column="1" Width="Auto" Height="Auto" Checked="RBHeader_Checked" d:LayoutOverrides="Width, Height" Content="Header Key" VerticalAlignment="Center" TabIndex="8"/>
                                    
								<TextBox Grid.Column="3" x:Name="TBStartNumber" Margin="10,0,0,0" Grid.Row="6" IsEnabled="False"  TextChanged="TBStartNumber_TextChanged" HorizontalAlignment="Left" Width="100" Height="25" VerticalAlignment="Center" TabIndex="6"/>
								<TextBlock Text="Not a single unique key found." TextWrapping="Wrap" Visibility="Visible" x:Name="TBNoUniqueKey" Grid.Column="2" Grid.ColumnSpan="2" Grid.Row="7" Height="Auto" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Center" d:LayoutOverrides="Height"/>
								<ComboBox Grid.Column="2" SelectionChanged="CBHeader_SelectionChanged"  Grid.Row="7" x:Name="CBHeader" SelectedItem="{Binding Path=HeaderName, Mode=OneWayToSource}" Grid.ColumnSpan="2" IsEnabled="False" Width="190" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Center" Height="30" TabIndex="9" />
								<CheckBox Grid.Column="4" Grid.Row="7" Margin="0,0,0,0" x:Name="ChkIsImportAsRegular" IsChecked="{Binding Path=ImportAsRegularColumn, Mode=OneWayToSource}" Content="Import Column as attribute of entity" IsEnabled="False"  Checked="ChkIsImportAsRegular_Checked" Grid.ColumnSpan="2" VerticalAlignment="Center" TabIndex="10" />
								<TextBlock Grid.Column="2" Grid.Row="6" Margin="0,0,0,0" x:Name="textBlock1" Text="Starting No." IsEnabled="True" d:LayoutOverrides="Height" HorizontalAlignment="Right" VerticalAlignment="Center" />
								<TextBlock Margin="0,0,0,0" x:Name="textBlock2" Grid.Column="4" Grid.Row="6" Text="Increment By" IsEnabled="True" d:LayoutOverrides="Height" HorizontalAlignment="Right" VerticalAlignment="Center" />
								<TextBox Margin="10,0,0,0" x:Name="TBIncrement"  Grid.Column="5" Grid.Row="6" IsEnabled="False"  TextChanged="TBIncrement_TextChanged" Width="100" Height="25" HorizontalAlignment="Left" VerticalAlignment="Center" TabIndex="7" />
								<TextBlock Margin="0,11.04,8,8" x:Name="textBlock3" Text="Partition Key" d:LayoutOverrides="Height" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center" />
								<TextBox Grid.Column="1" Margin="0,0,0,0" TextChanged="TBPartitionKey_TextChanged"  x:Name="TBPartitionKey" Text="{Binding Path=PartitionKey, Mode=OneWayToSource}" Grid.Row="3" Width="200" HorizontalAlignment="Left" VerticalAlignment="Center" Height="25" TabIndex="2" />
								<TextBlock Margin="0,11.04,8,8" x:Name="textBlock4" Text="Row Key" Grid.Row="4" HorizontalAlignment="Right" d:LayoutOverrides="Height" />
								<TextBlock Margin="0,0,10,0" x:Name="textBlock5" Text="Account Name" HorizontalAlignment="Right" VerticalAlignment="Center" />
								<TextBox Grid.Column="1" TextChanged="TBAccountName_TextChanged" Margin="0,0,0,0" x:Name="TBAccountName" Width="200" HorizontalAlignment="Left" Height="25" VerticalAlignment="Center" />
								<TextBlock Margin="0,0,10,0" x:Name="textBlock6" Text="Account Key" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" />
								<TextBox Grid.ColumnSpan="5" TextChanged="TBAccountKey_TextChanged"  Margin="0,5,29.985,5" x:Name="TBAccountKey" Grid.Column="1" Grid.Row="1" MinWidth="200" HorizontalAlignment="Stretch" Width="Auto" d:LayoutOverrides="GridBox" />
								<TextBlock Margin="53.45,8,8,11.04" x:Name="textBlock7" Text="Table Name" Grid.Row="2" d:LayoutOverrides="Height" />
								<TextBox Margin="0,0,0,0" x:Name="TBTableName" TextChanged="TBTableName_TextChanged"  Grid.Column="1" Grid.Row="2" Height="25" Width="200" HorizontalAlignment="Left" TabIndex="1" />
								<TextBlock Margin="8,5,15,8" Grid.Column="2" Grid.ColumnSpan="3" Grid.Row="2" Text="Table name must exist in the specified Azure Storage." TextWrapping="Wrap"/>
							</Grid>
						</Grid>
					</Border>
            			
				</Grid>
			</TabItem>
			<TabItem Header="EAV Table" x:Name="TIStep8" IsEnabled="False">
				<Grid>
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" x:Name="border8" RenderTransformOrigin="0.5,0.5" Opacity="1" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Width="Auto" ShowGridLines="False" >
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="100" />
                                <ColumnDefinition Width="766*" />
								<ColumnDefinition Width="120" />
							</Grid.ColumnDefinitions>
					
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="50" />
								<RowDefinition Height="*" />
								<RowDefinition Height="50" />
							</Grid.RowDefinitions>
								
							<TextBlock Text="Step 8" Margin="10,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="Auto" HorizontalAlignment="Left" />
							<Button Margin="10,12.5,10,12.5" x:Name="Bfinish" Click="BStartUploading_Click" Content="Start Uploading" Grid.Row="3" Grid.Column="2" Width="100" Height="25" TabIndex="1" />
                            <TextBlock Margin="8,0,0,0" Text="EAV Table Data" TextWrapping="Wrap" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1" Width="85.27" VerticalAlignment="Top" Height="15.96" />
							<Border BorderBrush="#FF44B8D2" BorderThickness="1,2,4,3" CornerRadius="5,5,5,5" Grid.ColumnSpan="3" Margin="13.129,10,10,10" Grid.Row="2">
								<Border.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1" />
										<SkewTransform AngleX="0" AngleY="0" />
										<RotateTransform Angle="0" />
										<TranslateTransform X="0" Y="0" />
									</TransformGroup>
								</Border.RenderTransform>
								<my:DataGrid AutoGenerateColumns="True" ItemsSource="{Binding}" x:Name="EAVTableGrid" CanUserAddRows="False" IsReadOnly="True"/>
                                    
							</Border>
						</Grid>
					</Border>
				</Grid>
			</TabItem>
			<TabItem Header="Upload" x:Name="TIStep9" IsEnabled="False">
				<Grid>
					<Border BorderThickness="1,1,5,5" BorderBrush="#FF44B8D2" CornerRadius="5,5,5,5" x:Name="border9" RenderTransformOrigin="0.5,0.5" Opacity="1" Width="Auto" HorizontalAlignment="Stretch" Height="Auto" VerticalAlignment="Stretch" Background="#FFFFFFFF">
						<Border.RenderTransform>
							<TransformGroup>
								<ScaleTransform ScaleX="1" ScaleY="1"/>
								<SkewTransform AngleX="0" AngleY="0"/>
								<RotateTransform Angle="0"/>
								<TranslateTransform X="0" Y="0"/>
							</TransformGroup>
						</Border.RenderTransform>
						<Grid Width="Auto" ShowGridLines="False" >
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="100" />
								<ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="150" />
                                <ColumnDefinition Width="120" />
								<ColumnDefinition Width="120" />
							</Grid.ColumnDefinitions>
					
							<Grid.RowDefinitions>
								<RowDefinition Height="50" />
								<RowDefinition Height="50" />
								<RowDefinition Height="*" />
								<RowDefinition Height="50" />
							</Grid.RowDefinitions>
								
							<TextBlock Text="Step 9" Margin="13.68,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="15.96" />
							<Button Margin="10,12.5,10,12.5" x:Name="BCancel" Click="BClose_Click" Content="Cancel" Grid.Row="3" Grid.Column="4" Width="100" Height="25" ToolTip="Abort uploading process." />
                            <Button Margin="10,12.5,0,12.5" x:Name="BStartNew" Click="BStartNew_Click"  Content="Start New" Grid.Row="3" Grid.Column="3" Width="100" HorizontalAlignment="Left" ToolTip="If you have more data to upload, click here for start again." />
							<TextBlock Text="Upload Data" TextWrapping="Wrap" Grid.Column="1" Grid.Row="1" VerticalAlignment="Top" Height="15.96" Margin="0,0,70.73,0" />
							<Border BorderBrush="#FF44B8D2" BorderThickness="1,2,4,3" CornerRadius="5,5,5,5" Grid.ColumnSpan="5" Margin="13.68,10,10,10" Grid.Row="2">
								<Border.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1" />
										<SkewTransform AngleX="0" AngleY="0" />
										<RotateTransform Angle="0" />
										<TranslateTransform X="0" Y="0" />
									</TransformGroup>
								</Border.RenderTransform>
								<!--<my:DataGrid x:Name="GridEAVTableUpload" />-->
								<my:DataGrid AutoGenerateColumns="False" Height="Auto" ItemsSource="{Binding}" x:Name="GridEAVTableUpload" Width="Auto" Grid.RowSpan="2" Grid.ColumnSpan="2" CanUserAddRows="False">
									<my:DataGrid.Columns>
										<my:DataGridTextColumn Binding="{Binding Path=PartitionKey}" IsReadOnly="True" Header="Partition Key" />
										<my:DataGridTextColumn Binding="{Binding Path=RowKey}" IsReadOnly="True" Header="Row Key" />
										<my:DataGridTemplateColumn Header="Status" IsReadOnly="True">
											<my:DataGridTemplateColumn.CellTemplate>
												<DataTemplate>
													<TextBlock x:Name="TBStatus" Text="{Binding Path=Status}" Foreground="Blue" />    
													<DataTemplate.Triggers>
														<Trigger SourceName="TBStatus" Property="Text" Value="Failed" >
															<Setter Property="TextBlock.Foreground" Value="Red"/>
														</Trigger>
														<Trigger SourceName="TBStatus" Property="Text" Value="Succussful" >
															<Setter Property="TextBlock.Foreground" Value="Green"/>
														</Trigger>
													</DataTemplate.Triggers>    
												</DataTemplate>
											</my:DataGridTemplateColumn.CellTemplate>
										</my:DataGridTemplateColumn>
										<my:DataGridTextColumn Binding="{Binding Path=Remark}" IsReadOnly="True" Header="Remark" />
									</my:DataGrid.Columns>
								</my:DataGrid>
							</Border>
							<TextBlock Grid.Row="1" x:Name="TBProgress" Text="" d:LayoutOverrides="Width" Grid.Column="3" Grid.ColumnSpan="2" Margin="0,0,0,0" />
							<ProgressBar Grid.Column="3" Margin="0,0,0,0" Height="20" x:Name="progressBar1" Grid.ColumnSpan="2" VerticalAlignment="Center"/>
							<TextBlock Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="TBPercent" Text="Progress %" Grid.ColumnSpan="2" Height="Auto" Margin="0,0,0,0" Width="Auto"  />
							<Button Margin="10,12.5,10,12.5" x:Name="BLaunchCloudStorage" Grid.Column="2" Width="130" Height="25" Click="BLaunchCloudStorage_Click" Grid.Row="3" Content="Cloud Storage Studio" ToolTip="you can launch Cloud Storage Studio by clicking here and see you data properly uploaded." />
						</Grid>
					</Border>
				</Grid>
			</TabItem>
		</TabControl>
	</Grid>
</Window>
